<?php

namespace App\Console\Commands\Tasks\Data;

use Illuminate\Console\Command;

//每1小时统计留存数据
class AccountLevelStatistics extends Command
{
    //命令名
    protected $signature = 'task:account_check_level';

    //命令描述
    protected $description = '每1小时统计留存数据';

    // 业务处理
    public function handle()
    {
        $time = time();
        $startTime =strtotime(date('Y-m-d H', $time - 3600) . ':00:00');
        $endTime = strtotime(date('Y-m-d H', $time) . ':00:00');
        app('repo_account_check')->crontabAccount($startTime, $endTime);
    }
}
